package com.weishu.core.service.impl;

import com.weishu.core.entity.TbPremisesFacility;
import com.weishu.core.mapper.TbPremisesFacilityMapper;
import com.weishu.core.service.ITbPremisesFacilityService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 *
 * 楼盘-交通表 服务实现类
 *
 * @author cuidk
 * @since 2021-10-19
 */
@Service
public class TbPremisesFacilityServiceImpl extends ServiceImpl<TbPremisesFacilityMapper, TbPremisesFacility> implements ITbPremisesFacilityService {

    @Resource
    private TbPremisesFacilityMapper tbPremisesFacilityMapper;

    /**
     * 添加楼盘-交通信息
     * @param tbPremisesFacility 楼盘-交通信息
     * @return
     */
    @Override
    public int insertTbPremisesFacility(TbPremisesFacility tbPremisesFacility) {
        return tbPremisesFacilityMapper.insertTbPremisesFacility(tbPremisesFacility);
    }
}
